FROM swr.cn-north-4.myhuaweicloud.com/gitcode/jdk:v1.8.191
LABEL maintainer="zhangsy <zhangsy1@csdn.net>"
RUN mkdir -p /data/web/app/ && useradd -ms /bin/bash -u 1000 appuser
ADD target/gitcode-test-zsy-ff.jar /data/web/app/gitcode-test-zsy-ff.jar
RUN chown -R appuser:appuser /data
WORKDIR /data/web/app/
CMD java -jar /data/web/app/gitcode-test-zsy-ff.jar --spring.profiles.active=$ENV